<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body padding-left-40">

        <div class="layui-row layui-col-space15">
            <div class="layui-col-xs2 text-center">
                <input type="hidden" name="thumb" value="{$vo.thumb|default=''}">
                <script>$('[name=thumb]').uploadOneImage()</script>
            </div>
            <div class="layui-col-xs5">
                <label class="block relative">
                    <span class="color-green font-w7">站点标题</span>
                    <span class="color-desc margin-left-5">Title</span>
                    <input name="name" value='{$vo.name|default=""}' required pattern="^.{2,}$" placeholder="请输入站点标题" class="layui-input">
                    <span class="help-block">必选，请填写链接标题</span>
                </label>
            </div>
            <div class="layui-col-xs5">
                <label class="block relative">
                    <span class="color-green font-w7">站点URL</span>
                    <span class="color-desc margin-left-5">URL</span>
                    <input name="url" value='{$vo.url|default=""}' required pattern="[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?" placeholder="请输入站点URL" class="layui-input">
                    <span class="help-block">必选，请填写正确的URL地址</span>
                </label>
            </div>
        </div>

        <div class="layui-row layui-col-space15">
            <div class="layui-col-xs4">
                <label class="relative block">
                    <span class="color-green font-w7">站长姓名</span>
                    <span class="color-desc margin-left-5">Webmaster</span>
                    <input name="webmaster" autocomplete="off" pattern="^.{2,}$" value='{$vo.webmaster|default=""}' placeholder="请输入站长姓名" class="layui-input">
                    <span class="color-desc">可选，请填写站长姓名</span>
                </label>
            </div>
            <div class="layui-col-xs4">
                <label class="relative block">
                    <span class="color-green font-w7">联系手机</span>
                    <span class="color-desc margin-left-5">Mobile</span>
                    <input type="tel" maxlength="11" autocomplete="off" name="tel" value='{$vo.tel|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入用户联系手机" class="layui-input">
                    <span class="color-desc">可选，请填写站长的联系手机号</span>
                </label>
            </div>
            <div class="layui-col-xs4">
                <label class="relative block">
                    <span class="color-green font-w7">联系Email</span>
                    <span class="color-desc margin-left-5">Email</span>
                    <input name="email" autocomplete="off" pattern="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" value='{$vo.email|default=""}' placeholder="请输入联系Email" class="layui-input">
                    <span class="color-desc">可选，请填写站长的联系Email地址</span>
                </label>
            </div>
        </div>

        <label class="layui-form-item block relative">
            <span class="color-green font-w7">站点描述</span><span class="color-desc">Description</span>
            <textarea placeholder="请输入站点描述" class="layui-textarea" name="description">{$vo.description|default=""}</textarea>
        </label>
        <div class="hr-line-dashed"></div>
        {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
        <div class="layui-form-item text-center">
            <button class="layui-btn" type='submit'>保存数据</button>
            <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
        </div>
    </div>
</form>